from . import models

from .fridacc import FridaControlCenter
from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect

fridaControlCenter = FridaControlCenter()


def index_demo(request):
    return HttpResponse("Hello, world. You're at the polls index.")


def index(request):
    return render(request, 'index-frame.html')


def mobile_index(request):
    return render(request, 'mobiles/index.html')


# region debug 模块

def debug(request):
    return render(request, 'debugs/debug.html')


# end region deb 模块

# region 重定向到主页
def home(request):
    return redirect('index')
# end region
